package command;

public class Client {
    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command command = new ConcreteCommand(receiver);

        //直接执行具体命令方式
        command.execute();

        //通过调用者执行命令
        Invoker invoker = new Invoker(command);
        invoker.execute();
    }
}
